package shared;

public class CallObject implements java.io.Serializable {

	public static final int VIEW_RECORDS = 3;
	public static final int SAVE_RECORD = 4; //s1 = record nbr, s2 = information att lägga till;
	public static final int CREATE_RECORD = 5; //s1 = recordNbr, s2 = nurses name
	public static final int DELETE_RECORD = 6; //s1 = recordNbr

	private int command;
	private String s1; //the server will send messages on this string
	private String s2;

	public CallObject(int command, String s1, String s2) {
		this.command = command;
		this.s1 = s1;
		this.s2 = s2;
	}

	public int getCommand() {
		return command;
	}

	public String getText1() {
		return s1;
	}

	public String getText2() {
		return s2;
	}
	public void setText1(String text){
		s1= text;
	}
	public void setText2(String text){
		s2= text;
	}

	public String toString() {
		return command + " " + s1 + " " + s2;
	}
}

